package com.touni.designpattern.decoratorpattern;

import com.touni.designpattern.decoratorpattern.inter.Shape;

/**
 * @ClassName : RedShapeDecorator
 * @Description :
 * @Author : lwq
 * @Date: 2020-11-12 11:12
 */
public class RedShapeDecorator extends ABShapeDecorator {
    public RedShapeDecorator(Shape shape){
        super(shape);
    }

    @Override
    public void draw() {
        decoratorShape.draw();
        setRedColor();
    }

    private void setRedColor(){
        System.out.println("this is red decorator !!");
    }
}
